package org.ourgrid.broker.scheduler.extensions;



public class OutgoingHandle extends GenericTransferHandle {

	
	private static final long serialVersionUID = 1L;

	
	private String destinationID;
	private String destinationContainerID;
	
	public OutgoingHandle(){}

	public OutgoingHandle(long id, String localFileName, String destinationFileName, String description, 
			String destinationID, String destinationContainerID) {
		super(id, localFileName, destinationFileName, description);
		this.destinationID = destinationID;
		this.destinationContainerID = destinationContainerID;
	}
	
	public OutgoingHandle(String localFileName, String destinationFileName, String description, 
			String destinationID, String destinationContainerID) {
		this(randomID(), localFileName, destinationFileName, description, destinationID, destinationContainerID);
	}

	public String getDestinationID() {
		return destinationID;
	}
	
	public String getDestinationContainerID() {
		return this.destinationContainerID;
	}

	@Override
	public String getOppositeID() {
		return getDestinationID();
	}
	
	public void setDestinationID(String destinationID) {
		this.destinationID = destinationID;
	}

	public void setDestinationContainerID(String destinationContainerID) {
		this.destinationContainerID = destinationContainerID;
	}
}